package com.xyht.sca_s.student_manage_system.modules.appDynamic.entity.req;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xyht.sca_s.student_manage_system.modules.meeting.entity.req.CheckboxReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 应用选项控件配置表
 * </p>
 *
 * @author XYHT
 * @since 2023-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("app_option_control_config")
@ApiModel(value = "AppOptionControlConfig对象", description = "应用选项控件配置表")
public class AppOptionControlConfigReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "控件唯一id(前端生成)")
    private String controlUniqueId;

    @ApiModelProperty(value = "类型")
    private String subType;

    @ApiModelProperty(value = "控件标题")
    private String name;

    @ApiModelProperty(value = "标题文本位置[1.top 2.center 3.right]")
    private String namePosition;

    @ApiModelProperty(value = "是否必填")
    private Boolean required;

    @ApiModelProperty(value = "默认提示")
    private String prompt;

    @ApiModelProperty(value = "是否设置默认值")
    private Boolean hasDefaultValue;

    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @ApiModelProperty(value = "选项列表")
    private List<CheckboxReq> checkboxList;

    @ApiModelProperty(value = "排列方向(vertical,horizontal)")
    private String direction;
}
